package com.mallcloud.mall.app.controller;

import com.mallcloud.mall.common.core.util.R;
import com.mallcloud.mall.mall.api.entity.MallOrderParkingModel;
import com.mallcloud.mall.mall.service.MallOrderParkingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "app-停车订单")
@RestController
@AllArgsConstructor
@RequestMapping("/app/orderParking")
public class AppOrderParkingController {
	private final MallOrderParkingService mallOrderParkingService;

	@ApiOperation("新增")
	@PostMapping("/save")
	public R<Boolean> save(@RequestBody MallOrderParkingModel orderModel) {
		return R.ok(mallOrderParkingService.save(orderModel));
	}

}
